package cn.dogger.easyboot.init.initEntity;

import cn.dogger.easyboot.init.annotation.InitField;
import cn.dogger.easyboot.init.annotation.InitTable;
import cn.dogger.easyboot.init.enums.FieldTypeEnums;
import lombok.Data;

/**
 * 用户和角色关联表
 *
 * @author dogger
 * 2022-07-27
 */
@Data
@InitTable(name = "sys_user_role",remark = "用户和角色关联表")
public class SysUserRole {

    @InitField(remark = "用户ID",name = "user_id",type = FieldTypeEnums.int_,keyFlag = true)
    private Long userId;


    @InitField(remark = "角色ID",name = "role_id",type = FieldTypeEnums.int_)
    private Long roleId;

}